/*
Copyright (c) 2011, Nimar S. Arora
All rights reserved.
*/
#ifndef STATISTICS_H
#define STATISTICS_H

#include <stdio.h>

#include "network.h"

typedef struct Stat_PE_t
{
  double stat_cnt;
  double stat_sum_inv_like;
} Stat_PE_t;

void stat_PE_init(Stat_PE_t * p_stat, const Graph_t * p_graph);
void stat_PE_update(Stat_PE_t * p_stat, const Graph_t * p_graph,
                    const Instance_t *p_inst);
void stat_PE_write(const Stat_PE_t * p_stat, const Graph_t * p_graph,
                   FILE * fp);

#endif
